package service;

import entity.Dormitory;

import java.sql.SQLException;
import java.util.List;

public interface DormitoryService {
    List<Dormitory> cx1(Integer lid) throws SQLException, ClassNotFoundException;

    int  sc(int id) throws SQLException, ClassNotFoundException;

    int tj(String building_name,String address,int manager_id,int total_floors) throws SQLException, ClassNotFoundException;


    int xg(String  building_name,String address,int manager_id,int total_floors,int building_id) throws SQLException, ClassNotFoundException;

    // 添加分页查询方法
    List<Dormitory> cx(Integer lid, int page, int pageSize) throws SQLException, ClassNotFoundException;

    // 添加获取总记录数方法
    int getTotalCount(Integer lid) throws SQLException, ClassNotFoundException;
}
